<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>搜索</title>
    <script type="text/javascript" src="<{$config.weburl}>/templates/wap/js/jquery-min.js"></script>
    <link type="text/css" href="<{$config.weburl}>/templates/wap/new_css/indexamazeui.css" rel="stylesheet" />
    <link type="text/css" href="<{$config.weburl}>/templates/wap/new_css/m_base.css" rel="stylesheet" />
    <link type="text/css" href="<{$config.weburl}>/templates/wap/new_css/style.css" rel="stylesheet" />
    <link type="text/css" href="<{$config.weburl}>/templates/wap/new_css/indexstyle.css" rel="stylesheet" />

</head>
<body>
<style>
    .header_top {
        height: 50px;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #f37b1d;
        box-shadow: 0 -1px 1px #eee;
        background: #F85709;
    }
    .st_back {
        position: absolute;
        left: 10px;
        width: 30px;
        height: 30px;
    }
    .st_back a {
        float: left;
        width: 30px;
        height: 24px;
        margin-top: 3px;
        background: url(<{$config.weburl}>/templates/wap/images/st_user_ico.png) no-repeat 0 0;
        background-size: 355px auto;

    }
    .header_top .tit {
        padding: 0;
        margin: 0;
        color: #fff;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 500;
    }
</style>
<div class="home_top clearfix header_top">
    <div class="st_back"><a href="javascript:;" onclick="javascript:history.go(-1);"></a></div>
    <h1 class="tit">搜索</h1>
    <div class="user_login">
        <{if !empty($buid)}>
        <a href="<{$config.weburl}>/main.php?action=logout"><i class="ico_05"></i>退出</a>
        <{else}>
        <a class="" href="<{$config.weburl}>/login.php">登录/</a>
        <a class="" href="<{$config.weburl}>/register.php">注册</a>
        <{/if}>

    </div>
</div>

<div class="m-main">
    <form name="search_fm" id="search_fm" action="<{$config.weburl}>" method="get" >
        <input type="hidden" name="m" value="product"/>
        <input type="hidden" name="s" value="search"/>
        <div class="head_search">
            <table>
                <tr><td width="55px">
                    <select name="typeid" class="type-sel">
                        <option value="">全部</option>
                        <option value="1" <{if $typeid ==1 }> selected <{/if}>  >文章</option>
                        <option value="2" <{if $typeid ==2 }> selected <{/if}>  >场馆</option>
                        <option value="3" <{if $typeid ==3 }> selected <{/if}>  >演出</option>
                    </select></td>
                    <td><input type="text" class="s_text" name="keyword" id="keyword" value="<{$keyword}>" placeholder="请输入关键字" /></td>
                    <td width="80px"><a href="javascript:;" id="search" class="s_btn">搜索</a></td>
                </tr></table>
    </form>
</div>

<div class="fex">
    <!--list开始-->
    <{foreach item=vo from=$info.list}>
    <div class="pdt_list">
        <{if $typeid == 1}>
        <a href="<{$config.weburl}>/?m=news&s=detail&id=<{$vo.nid}>">
            <div class="pdt_img"><img src="<{$vo.titlepic}>" width="110" height="148"></div>
            <div class="pdt_txt">
                <div class="pdt_box">
                    <p class="p_tit">
                        <em><i class="bq bg_2c"></i><{$vo.title}></em>
                        <span><{$vo.ftitle|truncate:100:'...'}></span>
                    </p>
                </div>
            </div>
            <{elseif $typeid == 2}>

            <a href="<{$config.weburl}>/?m=spot&s=detail&id=<{$vo.id}>">
                <div class="pdt_img"><img src="<{$vo.picurl}>" width="110" height="148"></div>

                <div class="pdt_txt">
                    <div class="pdt_box">
                        <p class="p_tit">
                            <em><i class="bq bg_2c"></i><{$vo.spot_name}></em>
                            <span><{$vo.address}></span>
                        </p>
                    </div>
                </div>

                <{elseif $typeid == 3 }>

                <a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>">
                    <div class="pdt_img"><img src="<{$vo.pic}>" width="110" height="148"></div>  <!--90 110-->
                    <div class="pdt_txt">
                        <div class="pdt_box">
                            <p class="p_tit">
                                <em><i class="bq bg_2c"></i><{$vo.pname}></em>
                                <span><{$vo.ftitle}></span>
                                <span>时间：<{$vo.performance_start_time|date_format:"%Y-%m-%d"}> </span>
                                <span>场馆：<{$vo.spot|get_spot_name}></span>
                                <span>票价：<strong class="price"><{$vo.price_list}></strong></span>
                                <{if $vo.discount > 0}>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c4"><{$vo.discount}>折</em></span>
                                <{/if}>

                                <{if $now_time >= $vo.reserve_time and $now_time <= $vo.sell_time || empty($vo.sell_time)}>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">预售中</em></span>

                                <{elseif !empty($vo.sell_time) && $now_time >= $vo.sell_time and $now_time <= $vo.performance_end_time }>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">销售中</em></span>

                                <{elseif $now_time >= $vo.performance_end_time}>
                                <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c3">已结束</em></span>
                                <{/if}>


                            </p>
                        </div>
                    </div>

                    <{else /}>

                    <a href="<{$config.weburl}>/?m=news&s=detail&id=<{$vo.nid}>">
                        <div class="pdt_img"><img src="<{$vo.titlepic}>" width="110" height="148"></div>
                        <div class="pdt_txt">
                            <div class="pdt_box">
                                <p class="p_tit">
                                    <em><i class="bq bg_2c"></i><{$vo.title}></em>
                                    <span class="h_40"><{$vo.ftitle|truncate:100:'...'}></span>
                                </p>
                            </div>
                        </div>

           <{/if}>

        </a>
    </div>
    <{/foreach}>
  
    <!--list结束-->

    <div class="page">
        <{$info.page}>
    </div>

</div>

</div>

<script type="text/javascript">

    $("#search").click(function(){

        var keyword = $("#keyword").val();
        if(keyword == ''){
            alert("关键词不能为空");
            return false;
        }

        $("#search_fm").submit();
    });

</script>

<!--<{include file="footer.htm"}>-->

</body>
</html>
